package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评价对象 ratings_reviews
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class RatingsReviews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价ID */
    private Long reviewId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long clientId;

    /** 服务人员ID */
    @Excel(name = "服务人员ID")
    private Long providerId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 评分（1-5星评价） */
    @Excel(name = "评分", readConverterExp = "1=-5星评价")
    private Long rating;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String reviewText;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewDate;

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setProviderId(Long providerId) 
    {
        this.providerId = providerId;
    }

    public Long getProviderId() 
    {
        return providerId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }
    public void setReviewText(String reviewText) 
    {
        this.reviewText = reviewText;
    }

    public String getReviewText() 
    {
        return reviewText;
    }
    public void setReviewDate(Date reviewDate) 
    {
        this.reviewDate = reviewDate;
    }

    public Date getReviewDate() 
    {
        return reviewDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("clientId", getClientId())
            .append("providerId", getProviderId())
            .append("orderId", getOrderId())
            .append("rating", getRating())
            .append("reviewText", getReviewText())
            .append("reviewDate", getReviewDate())
            .toString();
    }
}
